package com.team.appinfo.controller;

import com.team.appinfo.entity.DataDictionary;
import com.team.appinfo.entity.SystemConstant;
import com.team.appinfo.service.DataDictionaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
public class DataDictionaryController {
    @Autowired
    private DataDictionaryService dataDictionaryService;

    @RequestMapping("/getZhuangTaiDataDictionary")
    @ResponseBody   //返回APP状态
    public List<DataDictionary> getZhuangTaiDataDictionary(){
        List<DataDictionary> list = this.dataDictionaryService.getDataDictionaryinfo(SystemConstant.getAPP_ZhuangTai());
       return list;
    }

    @RequestMapping("/getPingTaiDataDictionary")
    @ResponseBody  //返回APP平台
    public List<DataDictionary> getPingTaiDataDictionary(){
        List<DataDictionary> list = this.dataDictionaryService.getDataDictionaryinfo(SystemConstant.getAPP_PingTai());
          return list;
    }



}
